package com.ck.admin.common;

public enum FailCode {

    DB_QUERY_EXCEPTION(24101,"查询异常")
    ,DB_INSERT_EXCEPTION(24102,"插入异常")
    ,DB_ADD_EXCEPTION(24103,"新增异常")
    ,DB_UPDATE_EXCEPTION(24105,"修改异常")
    ,DB_DELETE_EXCEPTION(24108,"删除异常")

    ,SERVICE_NETWORK_ERROR (24201,"网络异常")
    ,SERVICE_INVALID_FUNCTION(24202,	"方法名不存在")
    ,SERVICE_INVALID_PARAMETER(24203,"方法参数错误")
    ,SERVICE_FUNCTION_NO_ACCESS(24204,"对此方法无访问权限")

    ,PARAM_VALID_FAIL(24300,"参数校验：不通过")
    ;

    private Integer code;
    private String message;

    FailCode(Integer code, String message){
        this.code = code;
        this.message = message;
    }
    public String getMessage() {
        return message;
    }
    public int getCode() {
        return this.code;
    }
    public String getMsg() {
        return this.message;
    }
}
